import request from './request'

// 获取摄像头相关分组
export const getVideoListTree = (params: any) => {
    return request<any[], false>({
        url: '/hzs-video-data-sync-server/api/v1/video/list/tree',
        method: 'get',
        params,
    })
}

// 获取摄像头列表
export const getVideoCameraListV3 = (params: any) => {
    return request<any, false>({
        url: '/hzs-video-data-sync-server/api/v1/video/cameraListV3',
        method: 'post',
        data: params,
        headers: {
            'Content-Type': 'multipart/form-data',
        },
    })
}

// 获取视频信息
export const getVideoFlvUrl = (params: any) => {
    return request<any, false>({
        url: '/hzs-video-data-sync-server/api/v1/video/flvUrl',
        method: 'get',
        params,
    })
}

// 摄像头控制
export const getDeviceControl = (params: any) => {
    return request<any, false>({
        url: '/hzs-video-data-sync-server/api/v1/video/device-control',
        method: 'get',
        params,
    })
}

// 获取铁塔摄像头token
export const getDianxinToken = (params: any) => {
    return request<any, false>({
        url: '/hzs-video-data-sync-server/api/v1/video/getDianxinToken',
        method: 'get',
        params,
    })
}
